<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div id="app">
     <father></father>
    </div>
    <script src="js/vue.js"></script>
    <script>
        Vue.component('father',{
          template:`
            <div>
              父组件
              <son1></son1>
              <hr>
              <son2></son2>
            </div>
          `,
          components:{
            son1:{
              template:`
                <div >子组件1</div>
              `
            },
            son2:{
              template: `
                <div >子组件2</div>
              `
            }
          }
        })
        var vm = new Vue({
            el: '#app',
            data: {},
            methods: {}
        });
    </script>
</body>

</html>